fix setups that use basic auth
authorJyrki Gadinger <nilsding@nilsding.org>
Mon, 10 Mar 2025 09:19:14 +0000 (10:19 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 11 Mar 2025 08:43:41 +0000 (08:43 +0000)
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
src/libsync/accessmanager.cpp

index 34239a2fa762fbe5abdb567568e8d4b706f04d79..865c7ed9a42ee02e8bc80e623f49cc97175cb16b 100644 (file)
@@ -37,10 +37,11 @@ AccessManager::AccessManager(QObject *parent)
 {
     setCookieJar(new CookieJar);
     connect(this, &QNetworkAccessManager::authenticationRequired, this, [](QNetworkReply *reply, QAuthenticator *authenticator) {
+        Q_UNUSED(reply)
+
         if (authenticator->user().isEmpty()) {
-            qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user, aborting ...";
+            qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user";
             authenticator->setUser(QUuid::createUuid().toString());
-            reply->abort();
         }
     });
 }